
include_directories(${PROJECT_SOURCE_DIR}/src/include)
aux_source_directory(${PROJECT_SOURCE_DIR}/src/source SOURCES_FILES)
message(STATUS "Find SOURCES_FILES")
foreach (_FILE ${SOURCES_FILES})
    message(STATUS ${_FILE})
endforeach ()
aux_source_directory(${PROJECT_SOURCE_DIR}/src/include HEADERS_FILES)
message(STATUS "Find HEADERS_FILES")
foreach (_HEAD ${HEADERS_FILES})
    message(STATUS ${_HEAD})
endforeach ()
add_library(libserv SHARED ${SOURCES_FILES} ${HEADERS_FILES})


add_library(libserv_static ${SOURCES_FILES} ${HEADERS_FILES})
set_target_properties(libserv_static PROPERTIES OUTPUT_NAME "libserv")


# 使动态库和静态库同时存在
set_target_properties(libserv PROPERTIES CLEAN_DIRECT_OUTPUT 1)
set_target_properties(libserv_static PROPERTIES CLEAN_DIRECT_OUTPUT 1)

